//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
public class Main {
    public static void main(String[] args) {
        //1.BM2判断是否为回文字符串
        public boolean judge (String str) {
            int len = str.length();
            int left = 0;
            int right = len - 1;
            while(left < right) {
                if(str.charAt(left++) != str.charAt(right--)) {
                    return false;
                }
            }
            return true;
        }
    }
}